home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
500 MB Nyheder Direkte fra Internet 5
/
500 MB nyheder direkte fra internet CD 5.iso
/
start
/
zipped
/
dos
/
novell
/
lw42n2.exe
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1994-12-09
|
8KB
|
177 lines
#################################################
# #
# BWNFSD Makefile Version 3.2 10/13/94 fjw #
# #
#################################################
# #
# One can enable various debugging options here #
# #
#################################################
CC = cc
CC2 = cc
##########################
# #
# Dependencies Section: #
# #
##########################
make:
@echo 'Make what? You must tell which system to make BWNFSD for:'
@echo 'make sun - Sun or compatible running Sun-OS'
@echo 'make bsd - Generic Berkeley Unix'
@echo 'make linux - Linux'
@echo 'make bsdi - Berkeley Software Design Unix'
@echo 'make sys3 - Generic ATT System III or System V'
@echo 'make sys5 - Generic ATT System III or System V'
@echo 'make svr4 - ATT System V.4 UNIX'
@echo 'make univel - Univel System VR4 variant'
@echo 'make solaris21 - Solaris 2.1'
@echo 'make solaris22 - Solaris 2.2'
@echo 'make hpux - HPUX 8.07 System (Possibly others)'
@echo 'make sgi - Silicon Graphics machine'
@echo 'make sco - Santa Cruz Organization (SCO)'
@echo 'make aix - IBM AIX for RS/6000 or PS/2'
################################
# #
# Please add your system here #
# #
################################
OBJS = bwnfsd.o bwprint.o bwlock.o
all: bwnfsd
bwnfsd: $(OBJS)
$(CC) -o bwnfsd $(OBJS) $(CFLAGS)
########################################
#
# Possible defines and their uses include:
# SYSV_PGRP - Indicates that the system wants the SystemV form of the
# setpgrp() function; that is no arguments.
# INT_SIG - Indicates that this system thinks that the signal() function
# takes an integer functional argument, rather than void.
# USE_BCOPY - Indicates that this system doesn't understand memcmp() and
# memcopy(), and that bcmp() and bcopy() should be used instead.
# FOURTEEN_CHAR - Indicates that there is a fourteen character limit on
# filenames, which affects print-job queueing
# SHADW - Indicates that a Shadow password file is in use
# WINNFS - Indicates that compilation is for a Wollongong WIN system
# DONT_USE_NETINET_IN - Indicates that the system does not have/need the
# include of <netinet/in.h>
# P_TITLE_LOWERT - Indicates that the print command wants the printjob title
# to be indicated with a -t keyword rather than with a -T keyword.
# PORTMAP - Indicates that a Univel machine should include some include files
# that it otherwise doesn't. This symbol is checked by the include
# files on the Univel machine, not in this source code
# INCLUDE_BOGOSITY - Indicates that this machine's include files are not
# set up so that they can be multiply included. Some versions of
# HP/UX suffer from this, as do some AT&T machines.
# USE_ALARM - Indicates that this system uses the alarm() system call to set
# a timer event. The other mechanism is to use setitimer() calls.
#
# FIND_QUEUES_AIX - Indicates that we can determine the names of the queues
# on this machine in the AIX manner (parse the /etc/qconfig file)
# Q_CMDS_AIX - Indicates that this machine uses the standard AIX commands
# (bin/enq) for determining the status of and removing jobs from a print
# queue
# P_CMDS_AIX - Indicates that this machine uses the standard AIX command
# (/bin/enq) for printing to a print queue
# P_CMDS_AIX_PIOBE - Indicates that this machine uses the extended ASCII filter
# which requires the use of the pass-through option for printing.
# P_CMDS_AIX_ENSCRIPT - Indicates that this machine uses the AIX enscript
# command for printing to a print queue
#
# FIND_QUEUES_PRINTCAP - Indicates that we should determine the names of
# the queues on this machine by parsing the /etc/printcap file.
# Q_CMDS_BSD - Indicates that this machine uses the standard BSD commands
# (/usr/ucb/lp{q,rm}) for determining the status of and removing
# jobs from a print queue
# P_CMDS_BSD - Indicates that this machine uses the standard BSD command
# (/usr/ucb/lpr) for printing to a print queue
# P_CMDS_BSDI - Like BSD, but use /usr/bin/lpr
# Q_CMDS_BSDI - Like BSD, but use /usr/bin/lp{q,rm}
#
# FIND_QUEUES_SVR4 - Indicates that we should determine the names of the
# queues on this machine by reading the ASCII files that are in
# /usr/spool/lp/system/pstatus and /usr/spool/lp/system/cstatus
# CHECK_PRINTER_ACCESS - Indicates that users are to be allowed/disallowed
# access to printers on a username basis. This is only used in SVR4
# -style printing.
# Q_CMDS_SVR4 - Indicates that this machine uses the standard SVR4 commands
# (/usr/bin/lpstat /usr/bin/cancel) for determining the status of and
# removing jobs from a print queue
# P_CMDS_SVR4 - Indicates that this machine uses the standard SVR4 command
# (/usr/bin/lp) for printing to a print queue
#
# Q_CMDS_SCO - Indicates that this machine uses modified SVR4 commands like
# SCO does (/usr/bin/lpstat /usr/bin/cancel) for determining the
# status of and removing jobs from a print queue
#
# SCO - Indicates an SCO system
########################################
#
# Make commands for specific systems:
#
########################################
#IBM RS/6000 or PS/2 running AIX
aix:
make bwnfsd "CFLAGS= -O -DSYSV_PGRP -DFIND_QUEUES_AIX -DQ_CMDS_AIX -DP_CMDS_AIX"
#Sun
sun:
make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
#Berkeley Unix
bsd:
make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
#Linux
linux:
make bwnfsd "CFLAGS= -O -DSYSV_PGRP -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
#Berkeley Software Design Unix
bsdi:
make bwnfsd "CFLAGS= -O -DQ_CMDS_BSDI -DP_CMDS_BSDI -DFIND_QUEUES_PRINTCAP -DDONT_USE_NETINET_IN -lrpc"
#HPUX Version 8.07 (possibly others) NOTE: uses printcap
hpux:
make bwnfsd "CFLAGS= -O -DINCLUDE_BOGOSITY -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DFIND_QUEUES_PRINTCAP"
#Generic ATT System III or System V (not R4)
sys5:
make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_SYSV32 -DFIND_QUEUES_PRINTCAP -DFOURTEEN_CHAR"
#Generic ATT System III or System V (not R4)
sys3:
make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_SYSV32 -DFIND_QUEUES_PRINTCAP -DFOURTEEN_CHAR"
#Generic System V R4
svr4:
make bwnfsd "CFLAGS= -O -DINT_SIG -DFOURTEEN_CHAR -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lrpcsvc -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
#Univel System V R4
univel:
#old make bwnfsd "CFLAGS= -O -DPORTMAP -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lrpcsvc -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
make bwnfsd "CFLAGS= -O -DPORTMAP -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
#Solaris 2.1
solaris21:
make bwnfsd "CFLAGS= -w -O -DINT_SIG -DFIND_QUEUES_PRINTCAP -DP_CMDS_SVR4 -DQ_CMDS_SCO -DSHADW -lrpcsvc -lsocket -lresolv -lnsl"
#Solaris 2.2
solaris22:
make bwnfsd "CFLAGS= -w -O -DINT_SIG -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SCO -DSHADW -lrpcsvc -lsocket -lresolv -lnsl"
#Silicon Graphics machine
sgi:
#old make bwnfsd "CFLAGS= -O -cckr -I/usr/include/sun -I/usr/include/bsd -DP_CMDS_SYSV32 -DQ_CMDS_BSD -lrpcsvc -lsun -lbsd"
make bwnfsd "CFLAGS= -O -cckr -I/usr/include/sun -I/usr/include/bsd -DFIND_QUEUES_SVR4 -DCHECK_PRINTER_ACCESS -DP_CMDS_SVR4 -DQ_CMDS_SCO -lrpcsvc -lsun -lbsd"
#Intel hardware running Santa Cruz Operation's SCO Unix
#note that you'll need a crypt library, -lcrypt_i or some variant
sco:
make bwnfsd "CFLAGS= -O -DSCO -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SCO -DUSE_ALARM -DFOURTEEN_CHAR -lprot -lrpcsvc -lrpc -lsocket -lc_s"